export default function(coder: any) {


  coder['variables_get'] = function(block: any) {
    // Variable getter.
    var code = coder.variableDB_.getName(block.getFieldValue('VAR'),
        Blockly.Variables.NAME_TYPE);
    return [code, coder.ORDER_ATOMIC];
  };

  coder['variables_set'] = function(block: any) {
    // Variable setter.
    var argument0 = coder.valueToCode(block, 'VALUE',
        coder.ORDER_ASSIGNMENT) || '0';
    var varName = coder.variableDB_.getName(
        block.getFieldValue('VAR'), Blockly.Variables.NAME_TYPE);
    return varName + ' = ' + argument0 + ';\n';
  };
}